<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<style>
  .a + .b { color: pink }
</style>
<div id="host"></div>
<script>
  test(() => {
    var root = host.attachShadow({mode:"open"});
    root.innerHTML = "<span></span><span></span>";
    var span = root.firstChild;
    document.documentElement.offsetTop;
    span.setAttribute("class", "a");
    span.remove();
  }, `Scheduling a sibling invalidation set on shadow root before remove()
 should not cause a DCHECK failure`);
</script>
